<template>
  <MainLayout>
    <section class="forum-header">
      <div class="container">
        <div class="forum-header-title">使用API开发自定义解决方案</div>
        <div class="forum-header-content">
          使用AnyRender商业计划解锁平台的完全灵活性。访问APl专门用于自定义和扩展任何3D配置器的功能。
        </div>
        <div class="find-btn">
          <div class="find-btn-txt" @click="jump('/business/contact')">告诉我们你需要什么</div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img class="img-section-img" src="/images/business/api/banner/1.jpg" alt="" />
      </div>
    </section>

    <section class="team-section">
      <div class="container">
        <div class="team-title">你可以用API实现什么</div>
        <div class="team-desc">为您的数字孪生设置电子通信功能或响应行为，以及更多创造沉浸式体验的可能性。</div>
        <div class="team-btn" @click="jump('/resources/document')">阅读API文档</div>
        <div class="team-list">
          <div class="team-item">
            <img src="/images/business/api/banner/2.jpg" alt="" />
            <div class="team-item-tips">电子商务</div>
            <div class="team-item-title">定价计算器和结账</div>
            <div class="team-item-description">
              通过在结账时根据变体进行定价计算，设置3D配置器来发现完整的电子商务集成。这个演示是在平台上完成的。
            </div>
            <div class="find-btn left">
              <div class="find-btn-txt transparent" @click="jump('')">查看演示</div>
            </div>
          </div>
          <div class="team-item">
            <img src="/images/business/api/banner/3.jpg" alt="" />
            <div class="team-item-tips">互动网络</div>
            <div class="team-item-title">完全集成的交互式3D网站</div>
            <div class="team-item-description">
              体验鞋模型揭示的交互式故事讲述，通过滚动交互和用户界面集成APl。演示是在Framer网络平台上创建的。
            </div>
            <div class="find-btn left">
              <div class="find-btn-txt transparent" @click="jump('')">查看演示</div>
            </div>
          </div>
          <div class="team-item">
            <img src="/images/business/api/banner/4.jpg" alt="" />
            <div class="team-item-tips">数字孪生</div>
            <div class="team-item-title">变体</div>
            <div class="team-item-description">
              演示如何将内部数据连接到配置器以实时显示结果。在这种情况下，一个公寓楼和预订系统。
            </div>
            <div class="find-btn left">
              <div class="find-btn-txt transparent" @click="jump('')">查看演示</div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">将3D配置器变成强大的销售工具</div>
        <div class="threeD-tips">电子商务</div>
        <div class="threeD-description">获取定价计算，并连接到电子商务平台上的结账。</div>
        <div class="find-btn">
          <div class="find-btn-txt" @click="jump('')">阅读电子商务指南</div>
        </div>
        <img class="img-section-img" src="/images/business/api/banner/5.jpg" alt="" />
        <img class="img-section-img not-shadow" src="/images/business/api/banner/6.jpg" alt="" />
      </div>
    </section>

    <section class="share-section">
      <div class="container">
        <div class="share-title">AnyRender可以集成到</div>
        <div class="share-list">
          <div class="share-item" v-for="i in 20" :key="i">
            <img class="share-item-img" :src="`/images/business/api/logo/${i}.png`" alt="" />
          </div>
        </div>
        <div class="share-swiper">
          <el-carousel trigger="click" arrow="always" indicator-position="outside" height="150px">
            <el-carousel-item v-for="i in 20" :key="i">
              <img class="share-item-img" :src="`/images/business/api/logo/${i}.png`" alt="" />
            </el-carousel-item>
          </el-carousel>
        </div>
        <div class="share-more">还有数千个...</div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">提供一个完全互动的网站</div>
        <div class="threeD-tips">互动网站</div>
        <div class="threeD-description">使用事件侦听器让查看者对任何用户活动或数据做出反应。</div>
        <img class="img-section-img" src="/images/business/api/banner/7.jpg" alt="" />
        <img class="img-section-img not-shadow" src="/images/business/api/banner/8.jpg" alt="" />
        <div class="team-list">
          <div class="team-item">
            <div class="team-item-title">让3D查看器对任何用户活动做出反应</div>
            <div class="team-item-description">
              让用户在iframe之外与对象进行交互。使用滚动、点击、移动动作、用户相关事件等。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">接收或发送任何数据到3D查看器</div>
            <div class="team-item-description">
              使用API的消息层将任何数据发送到iframe或查看器之外。可能性是无穷无尽的。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">将网站用户界面与3D查看器连接起来</div>
            <div class="team-item-description">当涉及到自定义Ul元素时，在iframe的外面思考。把它完全变成你自己的。</div>
          </div>
        </div>
      </div>
    </section>

    <section class="threeD-section">
      <div class="container">
        <div class="threeD-title">用数字孪生思考更多</div>
        <div class="threeD-tips">数字孪生</div>
        <div class="threeD-description">将您的实体或数字产品与其数字复制品连接起来。</div>
        <img class="img-section-img" src="/images/business/api/banner/9.jpg" alt="" />
        <div class="team-list">
          <div class="team-item">
            <div class="team-item-title">创建原型来测试各种条件</div>
            <div class="team-item-description">
              在投入生产之前，将数字孪生原型放在各种条件下。测试预编程行为，将您需要的任何数据发送到3D查看器，并可视化输出。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">实时镜像产品及其状况</div>
            <div class="team-item-description">
              将数据获取到AnyRender查看器，以实时展示状态。这可以适用于与3D可视化相连的仓库数据系统、环境条件，如温度、物理产品状态等。
            </div>
          </div>
          <div class="team-item">
            <div class="team-item-title">通过矢量查看器控制您的实物产品</div>
            <div class="team-item-description">
              从AnyRender查看器发送数据，并使用3D配置器中的交互来控制您的物理产品-更改模块化、光线、温度等。
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="img-section">
      <div class="container">
        <img
          class="img-section-img cursor"
          @click="jump('/business/contact')"
          src="/images/business/api/banner/10.jpg"
          alt=""
        />
      </div>
    </section>
  </MainLayout>
</template>

<script setup>
  import { useRouter } from "vue-router";
  const router = useRouter();
  let extendList = [
    {
      title: "汽车",
      btn: "发现更多",
    },
    {
      title: "家具",
      btn: "发现更多",
    },
    {
      title: "电子产品",
      btn: "发现更多",
    },
    {
      title: "可再生能源",
      btn: "发现更多",
    },
    {
      title: "骑行",
      btn: "发现更多",
    },
    {
      title: "消费者",
      btn: "发现更多",
    },
    {
      title: "制造业",
      btn: "发现更多",
    },
    {
      title: "医疗",
      btn: "发现更多",
    },
  ];
  function jump(path) {
    router.push(path);
  }
</script>

<style lang="scss" scoped>
  @import "@/styles/variables.scss";

  .forum-header {
    padding: 48px 0 0;

    .container {
      .forum-header-title {
        font-size: 64px;
        font-weight: 500;
        color: #000;
        line-height: 1.6;
        text-align: center;
        letter-spacing: 3px;
      }
      .forum-header-content {
        margin: 20px auto;
        width: 50%;
        line-height: 1.6;
        text-align: center;
        font-size: 16px;
        color: #585858;
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      .container {
        .forum-header-title {
          font-size: 50px;
          letter-spacing: 2px;
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 32px 0;
      .container {
        .forum-header-title {
          font-size: 38px;
          letter-spacing: 1px;
        }
        .forum-header-content {
          margin-top: 20px;
          font-size: 14px;
          width: 80%;
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 24px 0;
      .container {
        .forum-header-title {
          font-size: 32px;
        }
      }
    }
  }

  .find-btn {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    &.left {
      justify-content: flex-start;
    }
    .find-btn-txt {
      display: inline-block;
      text-align: center;
      padding: 6px 20px;
      min-width: 60px;
      font-size: 16px;
      border-radius: 6px;
      color: #fff;
      background-color: #703ffa;
      border: 1px solid #703ffa;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      &:hover {
        background-color: transparent;
        color: #703ffa;
      }
      &.transparent {
        color: #703ffa;
        background-color: transparent;

        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
    }

    @media (max-width: $breakpoint-mobile) {
      margin: 20px auto;
      .find-btn-txt {
        margin: 20px auto;
        padding: 4px 20px;
        min-width: 100px;
        font-size: 14px;
      }
    }
  }

  .img-section {
    padding: 40px 0 40px;
  }
  .img-section-img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 2px 4px 8px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    &.not-shadow {
      box-shadow: none;
    }
    &.cursor {
      cursor: pointer;
    }
  }

  .threeD-section {
    padding: 40px 0 60px;
    color: #000;
    text-align: center;
    .container {
      .threeD-title {
        font-size: 48px;
        font-weight: 500;
        letter-spacing: 4px;
      }
      .threeD-tips {
        font-size: 22px;
        margin: 20px auto;
      }
      .threeD-description {
        width: 90%;
        margin: 15px auto 30px;
        font-size: 16px;
        color: #5c5c5c;
      }
      .find-btn-txt {
        color: #703ffa;
        background-color: transparent;
        transition: all 0.2s ease-in-out;
        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
      .team-list {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        .team-item {
          width: calc(33.33% - 20px);
          img {
            width: 100%;
            object-fit: cover;
            margin-bottom: 20px;
          }
          .team-item-tips {
            font-size: 14px;
            color: #929292;
          }
          .team-item-title {
            font-size: 22px;
            font-weight: 500;
            color: #000;
            margin-bottom: 12px;
          }
          .team-item-description {
            font-size: 16px;
            color: #585858;
          }
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-title {
          font-size: 36px;
          letter-spacing: 3px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 20px auto;
        }
        .threeD-description {
          font-size: 16px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 16px;
            }
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-title {
          font-size: 32px;
          letter-spacing: 2px;
        }
        .threeD-tips {
          font-size: 18px;
          margin: 18px auto;
        }
        .threeD-description {
          width: 100%;
          font-size: 16px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 14px;
            }
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-title {
          font-size: 28px;
        }
        .threeD-tips {
          font-size: 16px;
          margin: 14px auto;
        }
        .threeD-description {
          font-size: 14px;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 16px;
            }
            .team-item-description {
              font-size: 12px;
            }
          }
        }
      }
    }
  }

  .secure-content {
    padding: 25px 0;
    .container {
      .secure-level {
        display: flex;
        justify-content: space-between;
        .secure-level-content {
          flex: 1;
          width: 50%;
          padding: 0 0 0 20px;
          display: flex;
          flex-direction: column;
          justify-content: center;
          .secure-level-tips {
            font-size: 16px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-tips-small {
            font-size: 14px;
            font-weight: 500;
            color: #929292;
          }
          .secure-level-title {
            font-size: 32px;
            font-weight: 500;
            color: #383838;
            margin-bottom: 20px;
          }
          .secure-level-desc {
            margin: 0 0 20px;
            font-size: 16px;
            color: #585858;
            li {
              list-style: none;
              position: relative;
              padding-left: 15px;
              &::before {
                content: "•";
                position: absolute;
                left: 0;
                top: 50%;
                color: #585858;
                font-size: 16px;
                transform: translateY(-50%);
              }
            }
          }
        }
        .secure-iso {
          flex: 1;
          width: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .secure-level {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          .secure-level-content {
            flex: 1 1 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .secure-level-title {
              font-size: 28px;
              font-weight: 500;
              text-align: center;
            }
            .secure-level-tips {
              font-size: 14px;
            }

            .secure-level-desc {
              font-size: 16px;
            }
          }
          .secure-iso {
            flex: 1 1 100%;
            width: 100%;
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .secure-level {
          .secure-level-content {
            .secure-level-title {
              font-size: 32px;
            }
            .secure-level-desc {
              font-size: 16px;
            }
          }
        }
      }
    }
  }

  .threeD-content {
    padding: 25px 0 80px;
    .container {
      .threeD-list {
        display: flex;
        flex-wrap: wrap;
        gap: 30px 24px;
        .threeD-item {
          width: calc(25% - 18px);
          border-radius: 14px;

          .threeD-item-inner {
            flex: 1 1 100%;
            width: 100%;
            height: 100%;
            .threeD-item-img {
              width: 100%;
              border-radius: 14px;
              object-fit: cover;
              margin-bottom: 20px;
            }
            .threeD-item-tips {
              font-size: 16px;
              color: #929292;
            }
            .threeD-item-title {
              font-size: 36px;
              font-weight: 500;
              color: #000;
              margin-bottom: 20px;
            }
            .threeD-item-content {
              font-size: 16px;
              color: #585858;
              padding-bottom: 20px;
              ul {
                li {
                  list-style: none;
                  position: relative;
                  padding-left: 15px;
                  font-size: 16px;
                  margin-bottom: 10px;
                  &::before {
                    content: "•";
                    position: absolute;
                    left: 0;
                    top: 50%;
                    color: #585858;
                    font-size: 16px;
                    transform: translateY(-50%);
                  }
                }
              }
            }
            .threeD-item-btn {
              align-content: flex-end;
              display: flex;
              justify-content: center;
              align-items: center;
              padding: 10px 20px;
              font-size: 16px;
              width: fit-content;
              border: 1px solid #703ffa;
              color: #703ffa;
              border-radius: 10px;
              cursor: pointer;
              transition: all 0.2s ease-in-out;
              &:hover {
                background-color: #703ffa;
                color: #fff;
              }
            }
          }
        }
      }

      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .threeD-list {
          gap: 20px 24px;
          .threeD-item {
            width: calc(50% - 16px);
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 28px;
              }
              .threeD-item-content {
                padding-bottom: 10px;
              }
            }
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .threeD-list {
          gap: 20px;
          .threeD-item {
            width: 100%;
            padding: 8px;
            .threeD-item-inner {
              .threeD-item-title {
                font-size: 24px;
                margin-bottom: 10px;
              }
              .threeD-item-content {
                font-size: 14px;
                ul {
                  li {
                    font-size: 14px;
                  }
                }
              }
              .threeD-item-btn {
                padding: 6px 20px;
                font-size: 14px;
              }
            }
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
        .threeD-list {
          gap: 10px;
          .threeD-item {
            .threeD-item-inner {
              .threeD-item-btn {
                padding: 6px 12px;
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }

  .team-section {
    padding: 40px 0 90px;
    .container {
      padding: 1px 16px;
      .team-title {
        font-size: 44px;
        font-weight: 500;
        text-align: center;
        color: #000;
        margin: 20px auto 20px;
      }
      .team-desc {
        font-size: 16px;
        text-align: center;
        color: #585858;
        margin: 0 auto 20px;
      }
      .team-btn {
        margin: 20px auto 40px;
        width: fit-content;
        padding: 10px 20px;
        font-size: 16px;
        border: 1px solid #703ffa;
        color: #703ffa;
        border-radius: 10px;
        cursor: pointer;

        &:hover {
          background-color: #703ffa;
          color: #fff;
        }
      }
      .team-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 16px;
        margin-bottom: 40px;
        img {
          width: 100%;
        }
      }
      .team-list {
        display: flex;
        justify-content: center;
        gap: 30px;
        .team-item {
          width: calc(33.33% - 20px);
          img {
            width: 100%;
            object-fit: cover;
            margin-bottom: 20px;
          }
          .team-item-tips {
            font-size: 14px;
            color: #929292;
          }
          .team-item-title {
            font-size: 22px;
            font-weight: 500;
            color: #000;
            margin-bottom: 12px;
          }
          .team-item-description {
            font-size: 16px;
            color: #585858;
          }
        }
      }
    }

    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      padding: 30px 16px 80px;
      .container {
        .team-title {
          font-size: 36px;
          margin: 36px auto;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 16px;
            }
          }
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 24px 16px 60px;
      .container {
        .team-title {
          font-size: 32px;
          margin: 32px auto;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 18px;
            }
            .team-item-description {
              font-size: 14px;
            }
          }
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 20px 16px 50px;
      .container {
        .team-title {
          font-size: 28px;
          margin: 28px auto;
        }
        .team-list {
          flex-wrap: wrap;
          .team-item {
            width: 100%;
            .team-item-title {
              font-size: 16px;
            }
            .team-item-description {
              font-size: 12px;
            }
          }
        }
      }
    }
  }

  .share-section {
    padding: 40px 0 90px;
    background-color: #f7f7f7;
    .container {
      padding: 1px 16px;
      .share-title {
        color: #000;
        font-size: 44px;
        font-weight: 500;
        text-align: center;
        margin: 50px auto;
      }
      .share-list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        .share-item {
          width: 20%;
          .share-item-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }
      .share-swiper {
        display: none;
      }
      .share-more {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto;
        font-size: 16px;
        color: #383838;
        cursor: pointer;
      }
    }
    // 响应式 大屏幕
    @media (max-width: $breakpoint-large-desktop) {
      .container {
        .share-title {
          font-size: 36px;
        }
      }
    }
    // 响应式 电脑
    @media (max-width: $breakpoint-desktop) {
      padding: 40px 0 70px;
      .container {
        .share-title {
          font-size: 32px;
          margin: 40px auto;
        }
        .share-list {
          .share-item {
            width: 25%;
          }
        }
      }
    }
    // 响应式 平板
    @media (max-width: $breakpoint-tablet) {
      padding: 30px 0 60px;
      .container {
        .share-title {
          font-size: 28px;
          margin: 40px auto;
        }
        .share-list {
          display: none;
        }
        .share-swiper {
          display: block;
          :deep(.el-carousel__indicator.el-carousel__indicator--horizontal) {
            .el-carousel__button {
              width: 12px;
              height: 3px;
              border-radius: 50%;
            }
            &.is-active {
              .el-carousel__button {
                background-color: #fff;
              }
            }
          }
        }
      }
    }
    // 响应式 手机
    @media (max-width: $breakpoint-mobile) {
      padding: 20px 0 40px;
      .container {
        .share-title {
          font-size: 24px;
          margin: 30px auto;
        }
        .share-more {
          margin: 20px auto;
          font-size: 14px;
        }
      }
    }
  }

  .logo-list-section {
    background-color: #f7f7f7;
    padding: 50px 0 80px;
    .container {
      padding: 1px 16px;
      .logo-list-title {
        font-size: 44px;
        font-weight: 500;
        letter-spacing: 10px;
        text-align: center;
        margin: 40px 0;
      }
      .logo-list {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        gap: 16px;
        .logo-item-img {
          height: 72px;
          cursor: pointer;
        }
      }
      // 响应式 大屏幕
      @media (max-width: $breakpoint-large-desktop) {
        .logo-list {
          gap: 14px;
          .logo-item-img {
            height: 66px;
          }
        }
      }
      // 响应式 电脑
      @media (max-width: $breakpoint-desktop) {
        .logo-list-title {
          font-size: 36px;
          letter-spacing: 8px;
          margin: 30px 0;
        }
        .logo-list {
          flex-wrap: wrap;
          gap: 12px;
          .logo-item-img {
            height: 54px;
          }
        }
      }
      // 响应式 平板
      @media (max-width: $breakpoint-tablet) {
        .logo-list-title {
          font-size: 26px;
          letter-spacing: 6px;
          margin: 20px 0;
        }
        .logo-list {
          gap: 10px;
          .logo-item-img {
            height: 40px;
          }
        }
      }
      // 响应式 手机
      @media (max-width: $breakpoint-mobile) {
      }
    }
  }
</style>
